#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 20;//1e6+9;
ll prodb[maxn];
int main() {
    prodb[0]=prodb[1]=1;
    for(int i=2; i<maxn; ++i)
        prodb[i] = i*prodb[i-2]*prodb[i-1];
    for(int i=0; i<maxn; ++i)cout<<prodb[i]<<' ';
    cout<<endl;
    return 0;
}
